struct node{
	int val;
	struct node* next;
};
typedef struct node node;
node *head;
node *curr;
node* create(int a){
  node *temp=(node*)malloc(sizeof(node));
  temp->val=a;
  temp->next=NULL;
  return temp;
}
void insert(int a){
  node* temp=create(a);
  if(head==NULL){
    head=temp;
    curr=temp;
  }
  else{
    curr->next=temp;
    curr=curr->next;
  }
}
void display(node *ptr){
  while(ptr!=NULL){
    char c;
    printf("%d\n",ptr->val);
    ptr=ptr->next;
  }
}

